// let total = parseInt(readline());
// let n = parseInt(readline());
// let items = [];//商品列表
// for (var i = 0; i < n; i++) {
//     lines = readline().split(" ")
// }

//预订价格 let total = 100;
//数量 let n = 5;
// 商品价格[77,22,29,50,99] 商品价值:[92,22,36,46,90]
//114
function getMaxValue(total, n, items) {
    

}